
import sys
from PyQt5.QtWidgets import QApplication
from win_main import WinMain


def read_qss(style):
    """读取QSS样式表的方法"""
    with open(style, "r") as f:
        return f.read()
if __name__=="__main__":
    app=QApplication(sys.argv)
    window=WinMain()

    styleFile = "Style/qss/flat_white.qss"
    import Style.qss_rc  # 导入资源
    #
    # qssStyle = read_qss(styleFile)
    # window.ui.setStyleSheet(qssStyle)

    window.ui.show()
    sys.exit(app.exec_())
